import React from 'react';
import { connect } from 'dva';
import AutomaticEcharts from './AutomaticEcharts.jsx'

import Excel from './Excel'


function AutomaticPage({ dispatch, dataArr }) {
 
  return (
    <div>

      <Excel />
      
      {/* <AutomaticEcharts /> */}
      {
        dataArr.length > 1 ? <AutomaticEcharts /> : null
      }
      {/* <SliderChart dataArr={dataArr}/> */}
    </div>
  );

}



export default connect(({ echart }) => ({ ...echart }))(AutomaticPage)